import request from '@/utils/request'

/**
 * 获取设备列表
 * @param {Object} data
 */
export function list(data){
  return request({
    url: '/v1/camera/list',
    method: 'get',
    data
  })
}
/**
 * 请求更新目录
 * @param {Object} data
 */
export function catalog(data){
  return request({
    url: '/v1/camera/catalog',
    method: 'get',
    params : data
  })
}

export function delcamera(data){
    return request({
      url: '/v1/camera/delcamera',
      method:'POST',
      data
    })
}
